{if $session_is_teacher neq NULL}
<center>
	{if $session_is_teacher eq 1}
	<h2>{$user['0']['user']} válaszai:</h2>
	<table>
		<tr>
			<th>Feladatlap</th>
			<th>Feladat száma</th>
			<th>Válasz</th>
			<th>Helyes?</th>
			<th>Pontszám</th>
		</tr>
		{for $counter=0 ; $counter < $answers ; $counter++}
			<tr>
				<td><center>{$user[$counter]['name']}</center></td>
				<td><center>{$user[$counter]['number']}</a></center></td>
				<td><center>{$user[$counter]['description']}</center></td>
				<td><center>{if $user[$counter]['is_correct'] eq '1'}igen{else}nem{/if}</center></td>
				<td><center>{if $user[$counter]['is_correct'] eq '1' AND $user[$counter]['is_checkbox'] eq '0'}{$user[$counter]['score']}{else if $user[$counter]['is_correct'] eq '1' AND $user[$counter]['is_checkbox'] eq '1'}{$user[$counter]['score']/$user[$counter]['correct_checkbox']}{else}0{/if}</center></td>
			</tr>
		{/for}
	</table>
	{/if}
	<h2>Elért pontszámok</h2>
	<table>
		<tr>
			<th>Feladatlap neve</th>
			<th>Pontszám</th>
		</tr>
		<!--{var_dump($scoretable)}-->
		{foreach from=$scoretable item=value key=index}
			<tr>
				<td><center>{$scoretable[$index][1]}</center></td>
				<td><center>{if $scoretable[$index][0] eq ''}0{else}{$scoretable[$index][0]}{/if}/{$scoretable[$index][2]}</center></td>
			</tr>
		{/foreach}
	</table>
	<h2>Össz pontszám: {foreach from=$scoretable item=value key=index}{$i=$i+$scoretable[$index][0]}{/foreach}{$i}</h2>
</center>
{else}
<center>
<h1>Ehhez nincs jogosultságod!</h1><br />
</center>
{/if}